#include "menu.h"
#include "ui_menu.h"
#include "snake.h"
#include "weather.h"
#include "music.h"
#include "smart_home.h"
#include "live_home.h"
menu::menu(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::menu)
{
    ui->setupUi(this);

}

menu::~menu()
{
    delete ui;
}


void menu::on_pushButton_clicked()//游戏
{
    snake *s = new snake;
    s->show();
    hide();

}

void menu::on_pushButton_3_clicked()//天气预报
{
    weather *w=new weather;
    w->show();

}

void menu::on_pushButton_2_clicked()//音乐播放器
{
    music *u=new music;
    u->show();
}

void menu::on_pushButton_4_clicked()//智能家居
{
    smart_home *m=new smart_home;
    live_home *l=new live_home;
    l->show();
    m->show();
}
